<style>
.outer {
    width: 100px;
    height: 100px;
}
.inner {
    width: 100px;
    height: 200px;
    background: red;
    display: inline-block;
}
.inner.active {
}
</style>
<div class=outer>
<div class=inner id=inner></div>
</div>
